#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("color.in","r",stdin);
	freopen("color.out","w",stdout);
	int n;
	for(int i=0;i<19;i++)cin>>n;	
    cout<<"1"<<endl<<"0"<<endl<<"8";
	return 0;
}

